﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="Baocao.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng kí</title>
    <style type="text/css">
        .style1
        {
            width: 151px;
            margin-left: 40px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 1024px; background-color: White; position: relative; top: 0; bottom: 0;
        left: 0; right: 0; margin: auto;" align="center">
        <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" BackColor="Gray" 
            CreateUserButtonText="Đăng kí" CancelButtonText="Hủy" 
            CompleteSuccessText="Tài khoản đã được đăng kí thành công." 
            DuplicateEmailErrorMessage="Email đã được sử dụng." 
            DuplicateUserNameErrorMessage="Tài khoản đã được sử dụng." 
            oncreateduser="CreateUserWizard1_CreatedUser" 
            CancelDestinationPageUrl="~/Login.aspx" ContinueButtonText="Hoàn thành" 
            ContinueDestinationPageUrl="~/Login.aspx" FinishCompleteButtonText="Kết thúc" 
            FinishDestinationPageUrl="~/Login.aspx" FinishPreviousButtonText="Trước" 
            InvalidEmailErrorMessage="Vui lòng nhập địa chỉ email." 
            InvalidPasswordErrorMessage="Mật khẩu tối thiểu: {0}. Số lượng ký tự yêu cầu: {1}." 
            StartNextButtonText="Kế tiếp" StepNextButtonText="Kế tiếp" 
            StepPreviousButtonText="Trước" 
            UnknownErrorMessage="Không tạo được tài khoản. Vui lòng thử lại." 
            oncontinuebuttonclick="CreateUserWizard1_ContinueButtonClick">
            <WizardSteps>
                <asp:CreateUserWizardStep runat="server">
                    <ContentTemplate>
                        <table border="0">
                            <tr>
                                <td align="center" colspan="2">
                                    <b>Đăng kí tài khoản sử dụng mới</b>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="lbtkCha" runat="server" >Tài 
                                    khoản cha:</asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="lbltkCha" runat="server" ForeColor="Blue" ></asp:Label></td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên 
                                    tài khoản:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                        ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật 
                                    khẩu:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                        ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                        AssociatedControlID="ConfirmPassword">Nhập lại mật khẩu:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                        ControlToValidate="ConfirmPassword" 
                                        ErrorMessage="Confirm Password is required." 
                                        ToolTip="Confirm Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="FullNameLabel" runat="server" 
                                        AssociatedControlID="FullName">Họ tên:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="FullName" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="CompanyLabel" runat="server" 
                                        AssociatedControlID="Company">Công ty:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Company" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="PhoneLabel" runat="server" 
                                        AssociatedControlID="Phone">Số điện thoại:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Phone" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                        ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                        ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="AddressLabel" runat="server" AssociatedControlID="Address">Địa chỉ:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Address" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" 
                                        Visible="False">Câu hỏi bí mật:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Question" runat="server" Visible="False">who i am</asp:TextBox>
                                    <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                        ControlToValidate="Question" ErrorMessage="Security question is required." 
                                        ToolTip="Security question is required." ValidationGroup="CreateUserWizard1" 
                                        Visible="False">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" class="style1">
                                    <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" 
                                        Visible="False">Câu trả lời bí mật:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Answer" runat="server" Visible="False">i am hivi</asp:TextBox>
                                    <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                        ControlToValidate="Answer" ErrorMessage="Security answer is required." 
                                        ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1" 
                                        Visible="False">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                        ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                        Display="Dynamic" 
                                        ErrorMessage="Mật khẩu và nhập lại không đồng nhất." 
                                        ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CreateUserWizardStep>
                <asp:CompleteWizardStep runat="server" />
            </WizardSteps>
        </asp:CreateUserWizard>
    </div>
    </form>
</body>
</html>
